package com.link.linkupjavaweb.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.link.linkupjavaweb.entity.GameItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 游戏道具Mapper接口
 */
@Mapper
public interface GameItemMapper extends BaseMapper<GameItem> {
    
    /**
     * 根据道具代码查询
     */
    @Select("SELECT * FROM tb_game_item WHERE item_code = #{itemCode}")
    GameItem selectByItemCode(@Param("itemCode") String itemCode);
}

